﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/List.Master" AutoEventWireup="true" CodeBehind="BD_Project_List2.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Project.BD_Project_List2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="query_area">
        项目单位：<asp:DropDownList ID="ddlProjectCategory" runat="server" cssClass="input2" ></asp:DropDownList>&nbsp;&nbsp;
		编号：<asp:TextBox ID="txtSN" runat="server"  cssClass="input2" MaxLength="200" Width="80px"></asp:TextBox>&nbsp;&nbsp;		
		项目名称：<asp:TextBox ID="txtName" runat="server"  cssClass="input2" MaxLength="200" Width="150px"></asp:TextBox>
        <asp:Button runat="server" ID="btnQuery" Text="查 找" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" onclick="btnQuery_Click"/>
    </div>            
    <div class="button_area">
        <asp:Button runat="server" ID="btnAdd" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="新 增"/>
        <asp:Button runat="server" ID="btnDelete" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="删 除" 
            OnClientClick="javascript:var ret=getNoSelectionAlert('chkID','请选择要删除的记录后再执行此操作！');if(ret){return confirm('确定要删除所选的记录吗?')}else{return false;}"
            onclick="btnDelete_Click" />
    </div>

     <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" id="tGrid">
		<thead>  
            <th align="center" width="30px">
                <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
            </th>
            <th align="center" width="30px">编号</th>
            <th align="center">项目名称</th>
            <th align="center" width="80px">总投资<br />(项目概算)</th>
            <th align="center" width="80px">资本金到位<br />金额</th>
            <th align="center" width="80px">财政累计投资</th>
            <th align="center" width="80px">本项目国开行<br />贷款额度</th>
            <th align="center" width="80px">本项目<br />贷款额度</th>
            <% int StartYear = 2011; while (StartYear <= DateTime.Today.Year)
              { %>
            <th align="center" width="80px"><%=StartYear %>年度<br />投资计划</th>
            <% StartYear++;
              } %>
            <th width="40px">操作</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList">
			<ItemTemplate>
				<tr>
					<td align="center" >
                        <%# GetCheckbox(DataBinder.Eval(Container.DataItem, "ID") + "", Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsInit")), Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsUse")))%>						
					</td>
					<td><%#  DataBinder.Eval(Container.DataItem,"SN") %></td>
					<td align="left"><%# GetEditUrl( DataBinder.Eval(Container.DataItem,"Name")+"",DataBinder.Eval(Container.DataItem,"ID")+"") %></td>
					<td style="text-align:right;font-family:Arial Narrow"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"GS")) %></td>
                    <td style="text-align:right;font-family:Arial Narrow"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"ZBJ")) %></td>
                    <td style="text-align:right;font-family:Arial Narrow"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"CZLJ")) %></td>
                    <td style="text-align:right;font-family:Arial Narrow"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"GKLoan")) %></td>
                    <td style="text-align:right;font-family:Arial Narrow"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"ProjLoan")) %></td>
                    <%#GetPlanColumnData(Container.DataItem)%>             
                    <td>
						<%# GetButtonScript(DataBinder.Eval(Container.DataItem, "ID") + "", Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsInit")), Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsUse")))%>
					</td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>
    <div  class="paging_area" >
    <frameworkwebcontrols:aspnetpager id="AspNetPager1" runat="server"
                    alwaysshow="true" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pageindexboxtype="DropDownList"
                    prevpagetext="上一页" showpageindex="true" showcustominfosection="Right" submitbuttontext="Go"
                    textafterpageindexbox="页" textbeforepageindexbox="转到" currentpagebuttonposition="End"
                    layouttype="Div" custominfotextalign="Right" custominfohtml="共%RecordCount%条记录。第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                    direction="LeftToRight" onpagechanged="AspNetPager1_PageChanged">
                </frameworkwebcontrols:aspnetpager>            
    </div>
</asp:Content>
